package com.zhuiyun.pm.client.user.service;

import com.zhuiyun.pm.client.user.entity.ClientUserEntity;
import com.zhuiyun.pm.config.CommonResult;
import com.zhuiyun.pm.page.PageRequest;
import com.zhuiyun.pm.page.PageResult;
import org.springframework.web.multipart.MultipartFile;

/**
 * @ClassName ClientUserService
 * @Description 对ClientUser做出操作
 * @Author kdj
 * @Date 2023/3/13 20:56
 **/
public interface ClientUserService {
    /*
    * @Author kdj
    * @Description 获取全部前端登录用户的数据
    * @Date 2023/3/13 21:00
    * @Return com.zhuiyun.pm.page.PageResult
     * @param clientUser 查询参数
     * @param pageRequest 分页条件
    */
    PageResult getClientUserList(ClientUserEntity clientUserEntity, PageRequest pageRequest);

    /*
    * @Author kdj
    * @Description 新增前端用户
    * @Date 2023/3/14 10:04
    * @Return com.zhuiyun.pm.config.CommonResult
    * @param multipartFile,clientUserEntity
    */
    CommonResult saveClientUser(MultipartFile multipartFile,ClientUserEntity clientUserEntity);

    /*
    * @Author kdj
    * @Description 修改前端用户根据id
    * @Date 2023/3/14 14:06
    * @Return com.zhuiyun.pm.config.CommonResult
    * @param headFile,clientUserEntity
    */
    CommonResult upClientUserById(MultipartFile headFile,ClientUserEntity clientUserEntity);

    /*
    * @Author kdj
    * @Description 修改前端用户状态为封禁
    * @Date 2023/3/14 14:44
    * @Return com.zhuiyun.pm.config.CommonResult
    * @param id,userStatus
    */
    CommonResult upUserStatus(Integer id,Integer userStatus);

    /*
    * @Author kdj
    * @Description 删除前端用户
    * @Date 2023/3/14 15:59
    * @Return com.zhuiyun.pm.config.CommonResult
    * @param id
    */
    CommonResult removeUserById(int id);
}
